package com.example.demo1.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author zx
 * @Date 2022/2/7 14:24
 * @Version 1.0
 */
@Data
@ToString
@EqualsAndHashCode
@Component
@ConfigurationProperties(prefix = "mycar")
public class Car {
    private String brand;
    private String price;
}
